import { request } from 'umi';
/** 添加评论 POST /api/comments/add */

export async function addComments(body, options) {
  return request('/api/comments/add', {
    method: 'POST',
    data: body,
    ...(options || {}),
  });
}
/** 给评论点赞 POST /api/comments/like */

export async function likeComment(options) {
  return request('/api/comments/like', {
    method: 'POST',
    data: body,
    ...(options || {}),
  });
}
